import React from 'react';

const Com = {
  info (content) {
    console.log(content)
    return React.createElement(
      'div',
      { style: {position: 'fixed', top: '70%',padding:'5px 20px',backgroundColor: 'rgba(0,0,0, 0.6)', color: '#fff'} },
      content
    ).props
    // return (
    //   <div style={{position: 'fixed', top: '70%',padding:'5px 20px',backgroundColor: 'rgba(0,0,0, 0.6)', color: '#fff'}}>{content}</div>
    // )
  },
  success (content) {
    return (
      <div style={{position: 'fixed', top: '70%',padding:'5px 20px',backgroundColor: 'rgba(0,0,0, 0.6)', color: '#fff'}}>{content}</div>
    )
  }
}

export default Com;